﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ZLCMS.Web.Wap.Code;
using ZLCMS.Commands.User.Commands.Agent;
using DotNet.Common.Command;

namespace ZLCMS.Web.Wap.Agent
{
    public partial class Default : AgentPageBase
    {
        protected decimal BonusAmount { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            ICommandResult<LoadBonusSummaryResult> result = new LoadBonusSummaryCommand().Execute(new LoadBonusSummaryParameter() { Start = new DateTime(DateTime.Now.Year, DateTime.Now.Month, 1), End = DateTime.Now, UserAccount = UserCode, AgentAccount = UserCode, PageIndex = 1, PageSize = 0 });
            BonusAmount = result.Result.BonusAmount;
        }
    }
}